<%--                                                                       --%>
<%-- Copyright (c) 2004-2005 BroadVision, Inc.  All rights reserved.       --%>
<%--                                                                       --%>
<%-- This software is copyrighted. Under the copyright laws, this software --%>
<%-- may not be copied, in whole or in part, without prior written consent --%>
<%-- of BroadVision, Inc. or its assignees. This software is provided      --%>
<%-- under the terms of a license between BroadVision and the recipient,   --%>
<%-- and its use is subject to the terms of that license.                  --%>
<%--                                                                       --%>
<%-- This software may be protected by one or more U.S. and International  --%>
<%-- patents.  Certain applications of BroadVision One-To-One software are --%>
<%-- covered by U.S. patent 5,710,887.                                     --%>
<%--                                                                       --%>
<%-- TRADEMARKS: BroadVision and BroadVision One-To-One are registered     --%>
<%-- trademarks of BroadVision, Inc., in the United States and the         --%>
<%-- European Community, and are trademarks of BroadVision, Inc., in other --%>
<%-- countries.  The BroadVision logo, is a trademark of BroadVision,      --%>
<%-- Inc., in the United States and other countries. Additionally, IONA    --%>
<%-- and Orbix are trademarks of IONA Technologies, Ltd.  RSA, MD5, and    --%>
<%-- RC2 are trademarks of RSA Data Security, Inc.                         --%>
<%--                                                                       --%>

<%@ taglib uri="/WEB-INF/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/struts-html-el.tld" prefix="html-el" %>
<%@ taglib uri="/WEB-INF/struts-bean-el.tld" prefix="bean-el" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>

<script language="JavaScript">

//
//
//
function doChannelConfirmDelete() {
  return confirm('<bean-el:message key="ep.channel.confirm.delete" bundle="ep.messages"/>');
}

//
//
//
function doChannelOrder() {
  <c:url var="orderUrl" value="/ep/channelOrderEdit.do">
    <c:param name="channelId" value="${epChannelBrowseView.map.channelId}"/>
  </c:url>

  var popup = window.open('<c:out value="${orderUrl}"/>', 'EPChannelOrder', 'width=600,height=400,resizable=yes,scrollbars=yes,status=0');

  if (popup != null) {
    if (popup.opener == null) {
      popup.opener = self;
    }
  }
}

//
//
//
function doChannelMove() {
  doPickerPopupAction('<c:url value="/mt/categoryPickerPopup.do"/>', 'setChannelParent', 301, null, null);
}

//
//
//
function setChannelParent(ids, names) {
  document.epChannelBrowseForm.action = "<c:url value="/ep/channelSetParent.do"/>";
  document.epChannelBrowseForm.parentId.value = ids[0];
  document.epChannelBrowseForm.submit();
}

//
//
//
function doChannelSetStatus(form, status) {
  form.action = "<c:url value="/ep/channelSetOnlineStatus.do"/>";
  if (0 == status) {
    form.action = "<c:url value="/ep/channelSetOfflineStatus.do"/>";
  }

  form.submit();
}

//
//
//
function doProgramConfirmDelete() {
  return confirm('<bean-el:message key="ep.programs.confirm.delete" bundle="ep.messages"/>');
}

//
//
//
function doProgramOrder(form) {
  <c:url var="orderUrl" value="/ep/programOrderEdit.do">
    <c:param name="channelId" value="${epChannelBrowseView.map.channelId}"/>
  </c:url>

  var popup = window.open('<c:out value="${orderUrl}"/>', 'EPProgramOrder', 'width=600,height=400,resizable=yes,scrollbars=yes,status=0');

  if (popup != null) {
    if (popup.opener == null) {
      popup.opener = self;
    }
  }
}

//
//
//
function doDivMappingConfirmDelete() {
  return confirm('You want to delete this mapping?');
}

//
//
//
function doProgramMove(form) {
  doPickerPopupAction('<c:url value="/mt/categoryPickerPopupMultiSelect.do"/>', 'setProgramParent', 301, null, null);
}

//
//
//
function setProgramParent(ids, names) {
  document.epProgramBrowseForm.action = "<c:url value="/ep/programSetParent.do"/>";
  document.epProgramBrowseForm.parentIds.length = 0;
  for (var index = 0; index < ids.length; index++) {
    var option = new Option(names[index], ids[index], true, true);
    document.epProgramBrowseForm.parentIds.options[index] = option;
  }
  document.epProgramBrowseForm.submit();
}

//
//
//
function doProgramSetStatus(form, status) {
  form.action = "<c:url value="/ep/programSetOnlineStatus.do"/>";
  if (0 == status) {
    form.action = "<c:url value="/ep/programSetOfflineStatus.do"/>";
  }

  form.submit();
}

//
//
//
function doReloadPage() {
  document.epChannelBrowseForm.action = '<c:url value="/ep/channelBrowse.do"/>';
  document.epChannelBrowseForm.channelId.value = <c:out value="${epChannelBrowseView.map.channelId}"/>;
  document.epChannelBrowseForm.submit();
}

<%@ include file="/mc/common/jsutils.jsp" %>

</script>

<%@include file="/mt/common/pickerPopupHelper.jsp" %>

<% String ctxPath = request.getContextPath(); %>

<c:set var="editImg">
<img src="<%= ctxPath %>/ep/images/action/icon_edit.gif" width="15" height="15" border="0" class="actionIcon" alt="<bean-el:message key="image.alt.edit" bundle="ep.messages"/>" title="<bean-el:message key="image.alt.edit" bundle="ep.messages"/>">
</c:set>
<c:set var="offlineImg">
<img src="<%= ctxPath %>/ep/images/action/icon_offline.gif" width="15" height="15" border="0" class="actionIcon" alt="<bean-el:message key="image.alt.setOffline" bundle="ep.messages"/>" title="<bean-el:message key="image.alt.setOffline" bundle="ep.messages"/>">
</c:set>
<c:set var="onlineImg">
<img src="<%= ctxPath %>/ep/images/action/icon_online.gif" width="15" height="15" border="0" class="actionIcon" alt="<bean-el:message key="image.alt.setOnline" bundle="ep.messages"/>" title="<bean-el:message key="image.alt.setOnline" bundle="ep.messages"/>">
</c:set>
<c:set var="moveupImg">
<img src="<%= ctxPath %>/ep/images/action/icon_moveup.gif" width="15" height="15" border="0" class="actionIcon" alt="<bean-el:message key="image.alt.moveUp" bundle="ep.messages"/>" title="<bean-el:message key="image.alt.moveUp" bundle="ep.messages"/>">
</c:set>
<c:set var="movedownImg">
<img src="<%= ctxPath %>/ep/images/action/icon_movedown.gif" width="15" height="15" border="0" class="actionIcon" alt="<bean-el:message key="image.alt.moveDown" bundle="ep.messages"/>" title="<bean-el:message key="image.alt.moveDown" bundle="ep.messages"/>">
</c:set>
<c:set var="deleteImg">
<img src="<%= ctxPath %>/ep/images/action/icon_delete.gif" width="15" height="15" border="0" class="actionIcon" alt="<bean-el:message key="image.alt.delete" bundle="ep.messages"/>" title="<bean-el:message key="image.alt.delete" bundle="ep.messages"/>">
</c:set>
<c:set var="viewImg">
<img src="<%= ctxPath %>/ep/images/action/icon_view.gif" width="15" height="15" border="0" class="actionIcon" alt="<bean-el:message key="image.alt.view" bundle="ep.messages"/>" title="<bean-el:message key="image.alt.view" bundle="ep.messages"/>">
</c:set>

<table class="zoneFive" width="100%" border="0" cellspacing="0" cellpadding="0" summary="content area">
  <tr>
    <td valign="top" width="100%">
      <div class="pageTitle">
      <bean-el:message key="ep.channel.browse.page.title" bundle="ep.messages"/>
      </div>
      <div class="errorMessage"><html-el:errors bundle="ep.messages"/></div>

      <%@ include file="/mc/common/pagetab.jsp" %>

      <div class="breadcrumb">
      <c:if test="${not empty epChannelBrowseView.map.breadcrumbs}">
        <c:forEach var="channel" items="${epChannelBrowseView.map.breadcrumbs}" varStatus="index">
          <c:url var="browseUrl" value="/ep/channelBrowse.do">
            <c:param name="channelId" value="${channel.map.id}"/>
          </c:url>
          <c:if test="${index.count > 1}"><bean-el:message key="ep.breadcrumb.delimiter" bundle="ep.messages"/>&nbsp;</c:if><a href="<c:out value="${browseUrl}"/>"><c:out value="${channel.map.name}"/></a>
        </c:forEach>
      </c:if>
      </div>

      <html-el:form action="/ep/channelNew.do">
      <html-el:hidden property="channelId" value="${epChannelBrowseView.map.channelId}"/>
      <input type="hidden" name="ctx.f" value="<c:out value="${requestScope['ctx.f']}"/>"/>

      <div class="pageSubtitle">
        <span class="left"><bean-el:message key="ep.channels" bundle="ep.messages"/></span>
        <span class="right">
<c:if test="${epChannelBrowseView.map.editable}">
  <c:if test="${epChannelBrowseView.map.channelId != 0}">
    <c:if test="${pager.map.count > 1}">
        <input type="button" name="orderChannels" class="inputButton" onclick="doChannelOrder(this.form);" value='<bean-el:message key="button.reorder" bundle="ep.messages"/>'>
    </c:if>
  </c:if>
        <input type="submit" class="inputButton" value="<bean-el:message key="button.new.channel" bundle="ep.messages"/>" onclick="doAction('/ep/channelNew.do', this.form);">
</c:if>
        </span>
      </div>

      </html-el:form>

      <html-el:form action="/ep/channelBrowse.do">
      <input type="hidden" name="channelId"/>
      <input type="hidden" name="parentId"/>
      <input type="hidden" name="ctx.f" value="<c:out value="${requestScope['ctx.f']}"/>"/>

<c:set var="editableCount" value="0"/>
<c:forEach var="item" items="${epChannelBrowseView.map.channels}" varStatus="index">
  <c:if test="${item.map.editable}">
    <c:set var="editableCount" value="${editableCount + 1}"/>
  </c:if>
</c:forEach>

<c:set var="buttonDisabled" value=""/>
<c:if test="${editableCount == 0}">
  <c:set var="buttonDisabled">disabled="disabled"</c:set>
</c:if>

<c:set var="statusButtonDisabled" value="${buttonDisabled}"/>
<c:if test="${epChannelBrowseView.map.status == 0}">
  <c:set var="statusButtonDisabled">disabled="disabled"</c:set>
</c:if>

<c:if test="${not empty epChannelBrowseView.map.channels}">
      <div class="globalButtonWrap">
        <input type="button" name="selectAllChannels" class="globalButton" value="<bean-el:message key="button.selectAll" bundle="ep.messages"/>"
          onclick="check(this.form.channelIds, this);" <c:out value="${buttonDisabled}"/>>
        <input type="button" class="globalButton" value="<bean-el:message key="button.move" bundle="ep.messages"/>"
	  onclick="if (isAnyChecked(this.form.channelIds, '<bean-el:message key="ep.channel.atLeastOne" bundle="ep.messages"/>')) doChannelMove(this.form);" <c:out value="${buttonDisabled}"/>>
        <input type="button" class="globalButton" value="<bean-el:message key="button.setOnline" bundle="ep.messages"/>"
	  onclick="if (isAnyChecked(this.form.channelIds, '<bean-el:message key="ep.channel.atLeastOne" bundle="ep.messages"/>')) doChannelSetStatus(this.form, 1);" <c:out value="${statusButtonDisabled}"/>>
        <input type="button" class="globalButton" value="<bean-el:message key="button.setOffline" bundle="ep.messages"/>"
          onclick="if (isAnyChecked(this.form.channelIds, '<bean-el:message key="ep.channel.atLeastOne" bundle="ep.messages"/>')) doChannelSetStatus(this.form, 0);" <c:out value="${statusButtonDisabled}"/>>
        <input type="button" class="globalButton" value="<bean-el:message key="button.delete" bundle="ep.messages"/>"
          onclick="if (isAnyChecked(this.form.channelIds, '<bean-el:message key="ep.channel.atLeastOne" bundle="ep.messages"/>', '<bean-el:message key="ep.channels.confirm.delete" bundle="ep.messages"/>')) doAction('/ep/channelDelete.do', this.form);" <c:out value="${buttonDisabled}"/>>
       </div>
</c:if>

      <table class="dataTable" border="0" cellspacing="1" cellpadding="2" summary="Search result table" width="100%">
        <tr class="listHeader">
          <th id="Checkboxes" width="5%">&nbsp;</th>
          <th id="Name" align="left" width="20%"><bean-el:message key="ep.header.name" bundle="ep.messages"/></th>
          <th id="Description" align="left" width="30%"><bean-el:message key="ep.header.description" bundle="ep.messages"/></th>
          <th id="Status" align="left" width="10%"><bean-el:message key="ep.header.status" bundle="ep.messages"/></th>
          <th id="Actions" align="left" width="15%" nowrap><bean-el:message key="ep.header.actions" bundle="ep.messages"/></th>
        </tr>

        <!-- results -->
<c:forEach var="item" items="${epChannelBrowseView.map.channels}" varStatus="index">

          <c:url var="browseUrl" value="/ep/channelBrowse.do">
            <c:param name="channelId" value="${item.map.id}"/>
	  </c:url>
          <c:url var="viewUrl" value="/ep/channelView.do">
            <c:param name="channelId" value="${item.map.id}"/>
            <c:param name="ctx.f" value="${requestScope['ctx.f']}"/>
	  </c:url>
          <c:url var="onlineUrl" value="/ep/channelSetOnlineStatus.do">
            <c:param name="channelId" value="${item.map.id}"/>
            <c:param name="ctx.f" value="${requestScope['ctx.f']}"/>
	  </c:url>
          <c:url var="offlineUrl" value="/ep/channelSetOfflineStatus.do">
            <c:param name="channelId" value="${item.map.id}"/>
            <c:param name="ctx.f" value="${requestScope['ctx.f']}"/>
	  </c:url>
          <c:url var="editUrl" value="/ep/channelEdit.do">
            <c:param name="channelId" value="${item.map.id}"/>
            <c:param name="ctx.f" value="${requestScope['ctx.f']}"/>
	  </c:url>
          <c:url var="deleteUrl" value="/ep/channelDelete.do">
            <c:param name="channelId" value="${item.map.id}"/>
            <c:param name="ctx.f" value="${requestScope['ctx.f']}"/>
	  </c:url>

          <c:choose>
            <c:when test="${(index.count + 1) % 2 == 0}">
              <tr class="listEven">
            </c:when>
            <c:otherwise>
              <tr class="listOdd">
            </c:otherwise>
          </c:choose>

          <td headers="Checkboxes" align="center">
  <c:if test="${item.map.editable}">
            <input type="checkbox" name="channelIds"
              onclick="update(this.form.channelIds, this.form.selectAllChannels);"
              value="<c:out value="${item.map.id}"/>">
  </c:if>
          </td>
          <td headers="Name">
          <a href="<c:out value="${browseUrl}"/>"><c:out value="${item.map.name}"/></a>
          </td>

          <td headers="Description">
            <c:out value="${item.map.description}"/>
          </td>

          <td headers="Status">
            <c:choose>
              <c:when test="${item.map.status == 0}">
              <bean-el:message key="ep.label.offline" bundle="ep.messages"/>
              </c:when>
	      <c:otherwise>
	      <bean-el:message key="ep.label.online" bundle="ep.messages"/>
	      </c:otherwise>
            </c:choose>
          </td>

          <td headers="Actions">
            <a href="<c:out value="${viewUrl}"/>"><c:out value='${viewImg}' escapeXml="false"/></a>
<c:if test="${item.map.editable}">
            <a href="<c:out value="${editUrl}"/>"><c:out value='${editImg}' escapeXml="false"/></a>
  <c:if test="${epChannelBrowseView.map.status == 1}">
            <c:choose>
              <c:when test="${item.map.status == 0}">
              <a href="<c:out value="${onlineUrl}"/>"><c:out value='${onlineImg}' escapeXml="false"/></a>
              </c:when>
              <c:otherwise>
              <a href="<c:out value="${offlineUrl}"/>"><c:out value='${offlineImg}' escapeXml="false"/></a>
              </c:otherwise>
            </c:choose>
  </c:if>
            <a href="<c:out value="${deleteUrl}"/>" onclick="return doChannelConfirmDelete();"><c:out value='${deleteImg}' escapeXml="false"/></a>
</c:if>
          </td>
        </tr>
</c:forEach>

<c:if test="${empty epChannelBrowseView.map.channels}">
        <tr class="listOdd">
          <td align="center" colspan="5">
  <c:if test="${epChannelBrowseView.map.channelId == 0}">
            <bean-el:message key="ep.channels.noFound" bundle="ep.messages"/>
  </c:if>
  <c:if test="${epChannelBrowseView.map.channelId != 0}">
            <bean-el:message key="ep.channel.channels.noFound" bundle="ep.messages"/>
  </c:if>
          </td>
        </tr>
</c:if>
      </table>

      </html-el:form>

      <!-- pagination -->
<c:if test="${not empty epChannelBrowseView.map.channels}">
<%@ include file="/mc/common/pager.jsp" %>
</c:if>

<c:if test="${epChannelBrowseView.map.channelId != 0}">

      <br>

      <html-el:form action="/ep/programNew.do">
      <html-el:hidden property="channelId" value="${epChannelBrowseView.map.channelId}"/>
      <input type="hidden" name="ctx.f" value="<c:out value="${requestScope['ctx.f']}"/>"/>

      <div class="pageSubtitle">
        <span class="left"><bean-el:message key="ep.programs" bundle="ep.messages"/></span>
        <span class="right">
<c:if test="${epChannelBrowseView.map.editable}">
<c:if test="${pager2.map.count > 1}">
        <input type="button" name="orderPrograms" class="inputButton" onclick="doProgramOrder(this.form);" value='<bean-el:message key="button.reorder" bundle="ep.messages"/>'>
</c:if>
        <input type="submit" class="inputButton" value="<bean-el:message key="button.new.program" bundle="ep.messages"/>" onclick="doAction('/ep/programNew.do', this.form);">
</c:if>
        </span>
      </div>

      </html-el:form>

      <form name="epProgramBrowseForm" method="post">
      <html-el:hidden property="channelId" value="${epChannelBrowseView.map.channelId}"/>
      <input type="hidden" name="programId"/>
      <input type="hidden" name="ctx.f" value="<c:out value="${requestScope['ctx.f']}"/>"/>

<c:set var="editableCount" value="0"/>
<c:forEach var="item" items="${epChannelBrowseView.map.programs}" varStatus="index">
  <c:if test="${item.map.editable}">
    <c:set var="editableCount" value="${editableCount + 1}"/>
  </c:if>
</c:forEach>

<c:set var="buttonDisabled" value=""/>
<c:if test="${editableCount == 0}">
  <c:set var="buttonDisabled">disabled="disabled"</c:set>
</c:if>

<c:if test="${not empty epChannelBrowseView.map.programs}">
      <div class="globalButtonWrap">
        <input type="button" name="selectAllPrograms" class="globalButton" value="<bean-el:message key="button.selectAll" bundle="ep.messages"/>"
          onclick="check(this.form.programIds, this);" <c:out value="${buttonDisabled}"/>>
        <input type="button" class="globalButton" value="<bean-el:message key="button.move" bundle="ep.messages"/>"
          onclick="if (isAnyChecked(this.form.programIds, '<bean-el:message key="ep.program.atLeastOne" bundle="ep.messages"/>')) doProgramMove(this.form);" <c:out value="${buttonDisabled}"/>>
        <input type="button" class="globalButton" value="<bean-el:message key="button.setOnline" bundle="ep.messages"/>"
          onclick="if (isAnyChecked(this.form.programIds, '<bean-el:message key="ep.program.atLeastOne" bundle="ep.messages"/>')) doProgramSetStatus(this.form, 1);" <c:out value="${buttonDisabled}"/>>
        <input type="button" class="globalButton" value="<bean-el:message key="button.setOffline" bundle="ep.messages"/>"
          onclick="if (isAnyChecked(this.form.programIds, '<bean-el:message key="ep.program.atLeastOne" bundle="ep.messages"/>')) doProgramSetStatus(this.form, 0);" <c:out value="${buttonDisabled}"/>>
        <input type="button" class="globalButton" value="<bean-el:message key="button.delete" bundle="ep.messages"/>"
          onclick="if (isAnyChecked(this.form.programIds, '<bean-el:message key="ep.program.atLeastOne" bundle="ep.messages"/>', '<bean-el:message key="ep.programs.confirm.delete" bundle="ep.messages"/>')) doAction('/ep/programDelete.do', this.form);" <c:out value="${buttonDisabled}"/>>
      </div>
</c:if>

      <table class="dataTable" border="0" cellspacing="1" cellpadding="2" summary="Search result table" width="100%">
        <tr class="listHeader">
          <th id="Checkboxes" width="5%">&nbsp;</th>
          <th id="Name" align="left" width="20%"><bean-el:message key="ep.header.name" bundle="ep.messages"/></th>
          <th id="Description" align="left" width="30%"><bean-el:message key="ep.header.description" bundle="ep.messages"/></th>
          <th id="Status" align="left" width="10%"><bean-el:message key="ep.header.status" bundle="ep.messages"/></th>
          <th id="Actions" align="left" width="15%" nowrap><bean-el:message key="ep.header.actions" bundle="ep.messages"/></th>
        </tr>

        <!-- results -->
<c:forEach var="item" items="${epChannelBrowseView.map.programs}" varStatus="index">

          <c:url var="viewUrl" value="/ep/programView.do">
            <c:param name="programId" value="${item.map.id}"/>
            <c:param name="channelId" value="${epChannelBrowseView.map.channelId}"/>
            <c:param name="ctx.f" value="${requestScope['ctx.f']}"/>
	  </c:url>
          <c:url var="editUrl" value="/ep/programEdit.do">
            <c:param name="programId" value="${item.map.id}"/>
            <c:param name="channelId" value="${epChannelBrowseView.map.channelId}"/>
            <c:param name="ctx.f" value="${requestScope['ctx.f']}"/>
	  </c:url>
          <c:url var="onlineUrl" value="/ep/programSetOnlineStatus.do">
            <c:param name="programId" value="${item.map.id}"/>
            <c:param name="ctx.f" value="${requestScope['ctx.f']}"/>
	  </c:url>
          <c:url var="offlineUrl" value="/ep/programSetOfflineStatus.do">
            <c:param name="programId" value="${item.map.id}"/>
            <c:param name="ctx.f" value="${requestScope['ctx.f']}"/>
	  </c:url>
          <c:url var="deleteUrl" value="/ep/programDelete.do">
            <c:param name="programId" value="${item.map.id}"/>
            <c:param name="ctx.f" value="${requestScope['ctx.f']}"/>
	  </c:url>

          <c:choose>
            <c:when test="${(index.count + 1) % 2 == 0}">
              <tr class="listEven">
            </c:when> 
            <c:otherwise>
              <tr class="listOdd">
            </c:otherwise>
          </c:choose>

          <td headers="Checkboxes" align="center">
  <c:if test="${item.map.editable}">
            <input type="checkbox" name="programIds"
              onclick="update(this.form.programIds, this.form.selectAllPrograms);"
              value="<c:out value="${item.map.id}"/>">
  </c:if>
          </td>
          <td headers="Name"><a href="<c:out value="${viewUrl}"/>"><c:out value="${item.map.name}"/></a></td>

          <td headers="Description">
            <c:out value="${item.map.description}"/>
          </td>

          <td headers="Status">
            <c:choose>
              <c:when test="${item.map.status == 0}">
              <bean-el:message key="ep.label.offline" bundle="ep.messages"/>
              </c:when>
	      <c:otherwise>
	      <bean-el:message key="ep.label.online" bundle="ep.messages"/>
	      </c:otherwise>
            </c:choose> 
          </td>

          <td headers="Actions">
  <c:if test="${item.map.editable}">
            <a href="<c:out value="${editUrl}"/>"><c:out value='${editImg}' escapeXml="false"/></a>
            <c:choose>
              <c:when test="${item.map.status == 0}">
              <a href="<c:out value="${onlineUrl}"/>"><c:out value='${onlineImg}' escapeXml="false"/></a>
              </c:when>
              <c:otherwise>
              <a href="<c:out value="${offlineUrl}"/>"><c:out value='${offlineImg}' escapeXml="false"/></a>
              </c:otherwise>
            </c:choose>
            <a href="<c:out value="${deleteUrl}"/>" onclick="return doProgramConfirmDelete();"><c:out value='${deleteImg}' escapeXml="false"/></a>
  </c:if>
          </td>
        </tr>
</c:forEach>

<c:if test="${empty epChannelBrowseView.map.programs}">
        <tr class="listOdd">
          <td align="center" colspan="5">
            <bean-el:message key="ep.channel.programs.noFound" bundle="ep.messages"/>
          </td>
        </tr>
</c:if>

      </table>

      <select name="parentIds" multiple="multiple" size="0"></select>
      <script language="JavaScript1.2">
      var theform = document.forms['epProgramBrowseForm'];
      theform.parentIds.style.visibility = 'hidden';
      theform.parentIds.style.display = 'none';
      </script>

      </form>

      <!-- pagination -->
<c:if test="${not empty epChannelBrowseView.map.programs}">
<%@ include file="/mc/common/pager2.jsp" %>
</c:if>

</c:if>

    </td>
  </tr>
</table>
